package com.design.cjm.structural.decorator.example2;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/20
 * @Version 1.0
 */
public class TestApp {

    public static void main(String[] args) {
        Person littleMing = new Person("小明同学");

        ShoesDecorator shoes = new ShoesDecorator();
        TShirtDecorator tShirt = new TShirtDecorator();

        shoes.setPerson(littleMing);
        tShirt.setPerson(shoes);

        tShirt.show();
    }

}
